package com.kangye.enterprise.frontdesk.controller;

import com.kangye.enterprise.frontdesk.service.RegionService;
import com.kangye.enterprise.frontdesk.util.ViewJsonObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: enterprise
 * @description: 区域接口
 * @author: 索腾龙
 * @create: 2021-05-27 18:48
 **/
@RestController
@CrossOrigin
@RequestMapping("/region")
public class RegionController {
    @Autowired
    private RegionService regionService;
    //查询全部地区(索腾龙)
    @RequestMapping("/selRegion")
    public ViewJsonObject selRegion(Integer page, Integer limit){
        return regionService.selRegion(page, limit);
    }
}